gtk4.git
5 years agogl renderer: Lower maximum gradient stop count
Timm Bäder [Mon, 21 Sep 2020 19:23:57 +0000 (21:23 +0200)]
gl renderer: Lower maximum gradient stop count

6 is still plenty according to my market research.

Should help with #2624

5 years agogl renderer: Fall back to cairo if gradients use too many stops
Timm Bäder [Mon, 21 Sep 2020 19:19:19 +0000 (21:19 +0200)]
gl renderer: Fall back to cairo if gradients use too many stops

5 years agotextbuffer: Don't try to inset NULL text from clipboard
Timm Bäder [Sat, 19 Sep 2020 16:41:10 +0000 (18:41 +0200)]
textbuffer: Don't try to inset NULL text from clipboard

That used to generate a critical error message.

Also free() the data.

5 years agogl renderer: Only return error if creating programs failed
Timm Bäder [Sat, 19 Sep 2020 16:37:53 +0000 (18:37 +0200)]
gl renderer: Only return error if creating programs failed

5 years agogl renderer: Use scale_x/y when rendering clipped nodes
Timm Bäder [Sat, 19 Sep 2020 16:16:04 +0000 (18:16 +0200)]
gl renderer: Use scale_x/y when rendering clipped nodes

5 years agogl renderer: Don't use ops_get_scale() when rendering clip nodes
Timm Bäder [Sat, 19 Sep 2020 16:13:00 +0000 (18:13 +0200)]
gl renderer: Don't use ops_get_scale() when rendering clip nodes

Differentiate between scale_x and scale_y. This works better for e.g.
transform nodes using scaleX().

5 years agogl renderer: Support scaleX/Y better when rendering radial gradients
Timm Bäder [Sat, 19 Sep 2020 15:56:25 +0000 (17:56 +0200)]
gl renderer: Support scaleX/Y better when rendering radial gradients

We should do this everywhere, but this is a start.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 23 Sep 2020 22:44:22 +0000 (22:44 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3188

See merge request GNOME/gtk!2612

5 years agofontchooser: Don't center the list
Matthias Clasen [Wed, 23 Sep 2020 20:32:48 +0000 (16:32 -0400)]
fontchooser: Don't center the list

The centered layout of the font previews don't look appealing
and make it harder to judge the relative width and weight of
the individual styles.

Fixes: #3188
5 years agoUpdate Hungarian translation
Balázs Úr [Wed, 23 Sep 2020 15:25:12 +0000 (15:25 +0000)]
Update Hungarian translation

5 years agoUpdate Hungarian translation
Balázs Úr [Wed, 23 Sep 2020 14:39:40 +0000 (14:39 +0000)]
Update Hungarian translation

5 years agogtktreeview: Fix child access after TEST_EXPAND_ROW
Thomas Holder [Tue, 22 Sep 2020 07:27:29 +0000 (09:27 +0200)]
gtktreeview: Fix child access after TEST_EXPAND_ROW

In gtk_tree_view_build_tree with recurse=TRUE, the TEST_EXPAND_ROW
signal might invalidate the child iterator. Getting the iterator after
the signal (instead of before) fixes the issue.

Fixes https://gitlab.com/inkscape/inkscape/-/issues/1879

5 years agoMerge branch 'wip/jimmac/osd-spinbutton' into 'master'
Matthias Clasen [Wed, 23 Sep 2020 11:47:01 +0000 (11:47 +0000)]
Merge branch 'wip/jimmac/osd-spinbutton' into 'master'

Adwaita: osd spinbutton specificity bump

Closes #2769

See merge request GNOME/gtk!2610

5 years agoMerge branch 'make-claiming-button-release-work' into 'master'
Matthias Clasen [Wed, 23 Sep 2020 11:35:59 +0000 (11:35 +0000)]
Merge branch 'make-claiming-button-release-work' into 'master'

gestures: Make claiming button release work

See merge request GNOME/gtk!2576

5 years agoAdwaita: osd spinbutton specificity bump
Jakub Steiner [Wed, 23 Sep 2020 08:16:55 +0000 (10:16 +0200)]
Adwaita: osd spinbutton specificity bump

- mimic the peculiar selector from the normal style onto osd to
  override.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2769

5 years agoMerge branch 'improve-columnview-styling' into 'master'
Matthias Clasen [Tue, 22 Sep 2020 03:01:38 +0000 (03:01 +0000)]
Merge branch 'improve-columnview-styling' into 'master'

Adwaita: Improve columnview styling

See merge request GNOME/gtk!2608

5 years agoAdwaita: Don't restrict columnview editablelabel style to .data-table
nana-4 [Tue, 22 Sep 2020 01:40:15 +0000 (10:40 +0900)]
Adwaita: Don't restrict columnview editablelabel style to .data-table

This should be available without .data-table.

5 years agoAdwaita: Improve columnview styling
nana-4 [Tue, 22 Sep 2020 01:37:04 +0000 (10:37 +0900)]
Adwaita: Improve columnview styling

- Move padding from parent row to child cell.
- Align horizontal sizing of cell with header button.
- Properly support GtkColumnView:show-column-separators.
- Change cell height with and without .data-table.

5 years agoAdwaita: Fix separator color for lists
nana-4 [Tue, 22 Sep 2020 01:35:15 +0000 (10:35 +0900)]
Adwaita: Fix separator color for lists

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 21 Sep 2020 18:11:41 +0000 (18:11 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2607

5 years agoinspector: Make switches go back to normal size
Matthias Clasen [Sun, 20 Sep 2020 16:13:15 +0000 (12:13 -0400)]
inspector: Make switches go back to normal size

5 years agogtk-demo: Improve the pickers demo
Matthias Clasen [Sun, 20 Sep 2020 14:57:19 +0000 (10:57 -0400)]
gtk-demo: Improve the pickers demo

"Two of every kind..." Add some customized pickers
here. This found a number of issues that have been
fixed in the preceding commits.

5 years agocolorbutton: Fix handling of transient parents
Matthias Clasen [Sun, 20 Sep 2020 16:03:47 +0000 (12:03 -0400)]
colorbutton: Fix handling of transient parents

When we create the dialog before the button has
been rooted, we need to update its transient
parent when that happens.

5 years agoMerge branch 'fix-hover-tracking' into 'master'
Timm Bäder [Mon, 21 Sep 2020 12:20:00 +0000 (12:20 +0000)]
Merge branch 'fix-hover-tracking' into 'master'

main: Update pointer focus state for button releases

Closes #3172

See merge request GNOME/gtk!2601

5 years agoUpdated Czech translation
Marek Černocký [Mon, 21 Sep 2020 06:30:59 +0000 (08:30 +0200)]
Updated Czech translation

5 years agofilechooser: Fix gtk_file_chooser_set_choice
Matthias Clasen [Sun, 20 Sep 2020 16:01:52 +0000 (12:01 -0400)]
filechooser: Fix gtk_file_chooser_set_choice

This broke when it was ported to GtkDropDown.

5 years agofontchooser: Make sure the tweak button is updated
Matthias Clasen [Sun, 20 Sep 2020 14:55:54 +0000 (10:55 -0400)]
fontchooser: Make sure the tweak button is updated

This was showing up as tweak buttons being visible
when they should not. The code probably relied on
widgets being hidden by default (as they were in
GTK3).

5 years agofontchooser: Handle families without faces
Matthias Clasen [Sun, 20 Sep 2020 14:39:24 +0000 (10:39 -0400)]
fontchooser: Handle families without faces

This might seem useless, but I've met fonts
where pango_font_family_get_face (family, NULL)
return NULL. Handle it without criticals.

5 years agodocs: Improve gtk_widget_set_font_map docs
Matthias Clasen [Sun, 20 Sep 2020 14:58:46 +0000 (10:58 -0400)]
docs: Improve gtk_widget_set_font_map docs

5 years agoMerge branch 'fix-wayland-popups' into 'master'
Matthias Clasen [Sun, 20 Sep 2020 14:19:50 +0000 (14:19 +0000)]
Merge branch 'fix-wayland-popups' into 'master'

wayland: Fix grabbing popup

See merge request GNOME/gtk!2604

5 years agowayland: Fix grabbing popup
Matthias Clasen [Sun, 20 Sep 2020 14:02:53 +0000 (10:02 -0400)]
wayland: Fix grabbing popup

A typo snuck into commit 3023a61e1d65bee1db3 that
caused us to fail all grabbing popups with
"grab failed: not viewable". Fix that.

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 20 Sep 2020 06:38:03 +0000 (06:38 +0000)]
Update Turkish translation

5 years agoMerge branch 'kill-widget-new' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 21:25:32 +0000 (21:25 +0000)]
Merge branch 'kill-widget-new' into 'master'

Drop gtk_widget_new

See merge request GNOME/gtk!2603

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 21:22:30 +0000 (21:22 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2602

5 years agoDrop gtk_widget_new
Matthias Clasen [Sat, 19 Sep 2020 20:58:42 +0000 (16:58 -0400)]
Drop gtk_widget_new

An abstract type should not have a constructor.
If you want to be generic, just use g_object_new.

5 years agoNEWS: Updates
Matthias Clasen [Sat, 19 Sep 2020 20:47:52 +0000 (16:47 -0400)]
NEWS: Updates

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 20:48:49 +0000 (20:48 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

textbuffer: Redo insert markup a little bit

See merge request GNOME/gtk!2600

5 years agomain: Update pointer focus state for button releases
Matthias Clasen [Sat, 19 Sep 2020 20:45:56 +0000 (16:45 -0400)]
main: Update pointer focus state for button releases

Failure to do so makes the old pointer focus target
'sticky', because we end up ignoring the result of
picking the pointer focus until a motion event comes
in.

Fixes: #3172
5 years agoshortcutswindow: Drop the Private struct
Matthias Clasen [Sat, 19 Sep 2020 20:22:04 +0000 (16:22 -0400)]
shortcutswindow: Drop the Private struct

5 years agorevealer: Drop the Private struct
Matthias Clasen [Sat, 19 Sep 2020 18:41:41 +0000 (14:41 -0400)]
revealer: Drop the Private struct

5 years agomagnifier: Drop the Private struct
Matthias Clasen [Sat, 19 Sep 2020 18:36:44 +0000 (14:36 -0400)]
magnifier: Drop the Private struct

5 years agoCosmetic
Matthias Clasen [Sat, 19 Sep 2020 18:31:02 +0000 (14:31 -0400)]
Cosmetic

5 years agocolorscale: Drop the Private struct
Matthias Clasen [Sat, 19 Sep 2020 18:26:48 +0000 (14:26 -0400)]
colorscale: Drop the Private struct

5 years agoMerge branch 'wayland-backend-api-cleanup' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 18:19:18 +0000 (18:19 +0000)]
Merge branch 'wayland-backend-api-cleanup' into 'master'

wayland: Change backend api to use GdkToplevel

See merge request GNOME/gtk!2598

5 years agotextbuffer: Redo insert markup a little bit
Matthias Clasen [Sat, 19 Sep 2020 18:17:28 +0000 (14:17 -0400)]
textbuffer: Redo insert markup a little bit

Redo the tag insertion function to avoid quadratic
behavior, and at the same time, fix handling of
alpha for color attributes.

Update the copy of this function in gtk4-demo
as well.

5 years agoMerge branch 'password-entry-activate' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 18:12:35 +0000 (18:12 +0000)]
Merge branch 'password-entry-activate' into 'master'

Add GtkPasswordEntry::activate

Closes #3174

See merge request GNOME/gtk!2599

5 years agopasswordentry: Add an ::activate signal
Matthias Clasen [Sat, 19 Sep 2020 17:25:03 +0000 (13:25 -0400)]
passwordentry: Add an ::activate signal

GtkSearchEntry has one, no reason why GtkPasswordEntry
should not as well.

Fixes: #3174
5 years agopasswordentry: Drop the Private struct
Matthias Clasen [Sat, 19 Sep 2020 17:23:40 +0000 (13:23 -0400)]
passwordentry: Drop the Private struct

5 years agodocs: Add missing Wayland backend api
Matthias Clasen [Sat, 19 Sep 2020 17:13:31 +0000 (13:13 -0400)]
docs: Add missing Wayland backend api

Since Wayland is now our flagship backend,
we should put some effort into the docs.

5 years agowayland: Change backend api to use GdkToplevel
Matthias Clasen [Sat, 19 Sep 2020 17:05:57 +0000 (13:05 -0400)]
wayland: Change backend api to use GdkToplevel

Most of the surface api we have in the Wayland backend
only makes sense for toplevels, so reshuffle things to
take a GdkToplevel instead of a GdkSurface.

Update all callers and the docs.

5 years agoNEWS: Updates
Matthias Clasen [Sat, 19 Sep 2020 16:09:24 +0000 (12:09 -0400)]
NEWS: Updates

5 years agoMerge branch 'wip/baedert/radial-gradient' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 15:49:14 +0000 (15:49 +0000)]
Merge branch 'wip/baedert/radial-gradient' into 'master'

Radial gradients

Closes #2262, #3170, and #3173

See merge request GNOME/gtk!2597

5 years agoMerge branch 'wip/fontchooser-language-filtering' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 15:06:56 +0000 (15:06 +0000)]
Merge branch 'wip/fontchooser-language-filtering' into 'master'

fontchooser: add language filtering

See merge request GNOME/gtk!2551

5 years agofontchooser: Remove signal handlers in dispose
Matthias Clasen [Sat, 19 Sep 2020 14:44:50 +0000 (10:44 -0400)]
fontchooser: Remove signal handlers in dispose

Avoid ordering issues in dispose by disconnecting
the rows_changed_cb handler first thing.

5 years agofontchooser: Don't show "No fonts" prematurely
Matthias Clasen [Sat, 19 Sep 2020 14:25:45 +0000 (10:25 -0400)]
fontchooser: Don't show "No fonts" prematurely

Don't switch to the empty page while we are still busy
filtering. Fonts might yet appear.

5 years agofontchooser: Use filter language for sample text
Matthias Clasen [Wed, 9 Sep 2020 16:38:35 +0000 (12:38 -0400)]
fontchooser: Use filter language for sample text

When you are asking to only see fonts that support
a given language, you probably want to see the
sample text for that language too.

5 years agofontchooser: Add user filtering
Matthias Clasen [Tue, 8 Sep 2020 23:51:12 +0000 (19:51 -0400)]
fontchooser: Add user filtering

Add a popover that has filtering options. As a start,
allow filtering by monospace and by language coverage.

5 years agoImprove language names
Matthias Clasen [Sat, 19 Sep 2020 13:45:17 +0000 (09:45 -0400)]
Improve language names

Shorten a few of the names we pick up by removing
parentheses that make them excessively long.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 13:26:34 +0000 (13:26 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

win32: Fix compiler warnings

See merge request GNOME/gtk!2596

5 years agoMerge branch 'font-chooser-sample-text' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 13:19:28 +0000 (13:19 +0000)]
Merge branch 'font-chooser-sample-text' into 'master'

fontchooser: Determine sample text intelligently

See merge request GNOME/gtk!2546

5 years agowin32: Fix compiler warnings
Matthias Clasen [Sat, 19 Sep 2020 12:28:42 +0000 (08:28 -0400)]
win32: Fix compiler warnings

The compiler informs me that GetLastError() return a DWORD,
so use %lx to print it.

5 years agoTry one more time to fix win32 ci
Matthias Clasen [Sat, 19 Sep 2020 04:17:43 +0000 (00:17 -0400)]
Try one more time to fix win32 ci

5 years agoUpdate British English translation
Zander Brown [Sat, 19 Sep 2020 11:42:18 +0000 (11:42 +0000)]
Update British English translation

5 years agocssimageradial: Avoid creating color stops with an offset > 1
Timm Bäder [Sat, 19 Sep 2020 06:55:18 +0000 (08:55 +0200)]
cssimageradial: Avoid creating color stops with an offset > 1

5 years agoscrolledwindow: Ignore captured motion events if no child is set
Timm Bäder [Sat, 19 Sep 2020 06:44:58 +0000 (08:44 +0200)]
scrolledwindow: Ignore captured motion events if no child is set

Fixes #3173

5 years agofontchooser: Determine sample text intelligently
Matthias Clasen [Tue, 8 Sep 2020 19:14:17 +0000 (15:14 -0400)]
fontchooser: Determine sample text intelligently

Look at the languages supported by a font, and pick
a suitable sample text from the pango list of sample
texts. We can only implement this on platforms using
fontconfig, since it relies on pangofc apis.

This bumps the pango dependency to 1.47.1.

5 years agorendernodes: Clarify color_stops arguments
Timm Bäder [Fri, 18 Sep 2020 17:01:10 +0000 (19:01 +0200)]
rendernodes: Clarify color_stops arguments

5 years agogsk: Add docs for radial gradient nodes
Timm Bäder [Fri, 18 Sep 2020 16:41:01 +0000 (18:41 +0200)]
gsk: Add docs for radial gradient nodes

5 years agorendernodes: Enfore end > start for radial gradient nodes
Timm Bäder [Fri, 18 Sep 2020 16:29:08 +0000 (18:29 +0200)]
rendernodes: Enfore end > start for radial gradient nodes

5 years agogl renderer: Consolidate color pre-multiplication
Timm Bäder [Fri, 18 Sep 2020 13:26:58 +0000 (15:26 +0200)]
gl renderer: Consolidate color pre-multiplication

Add a common function that tells us what it does and replace all the
manual stuff with it.

Fixes #3170

5 years agogl renderer: Add radial gradient shader
Timm Bäder [Fri, 18 Sep 2020 12:42:36 +0000 (14:42 +0200)]
gl renderer: Add radial gradient shader

5 years agorendernode: Pull local variable into closest scope
Timm Bäder [Fri, 18 Sep 2020 03:33:16 +0000 (05:33 +0200)]
rendernode: Pull local variable into closest scope

5 years agoInspector: Show radial gradient node info
Timm Bäder [Wed, 16 Sep 2020 04:49:38 +0000 (06:49 +0200)]
Inspector: Show radial gradient node info

5 years agogl renderer: Set an error if we don't have one already
Timm Bäder [Wed, 16 Sep 2020 03:57:11 +0000 (05:57 +0200)]
gl renderer: Set an error if we don't have one already

We can't fail and not set the error, since caller don't expect that.

5 years agoradial gradients: Allow 0 start/end values
Timm Bäder [Wed, 16 Sep 2020 03:02:07 +0000 (05:02 +0200)]
radial gradients: Allow 0 start/end values

5 years agogsk: Parse radial gradient nodes
Timm Bäder [Tue, 15 Sep 2020 04:20:56 +0000 (06:20 +0200)]
gsk: Parse radial gradient nodes

5 years agocss: switch to h/vradius
Matthias Clasen [Sat, 12 Sep 2020 13:16:42 +0000 (09:16 -0400)]
css: switch to h/vradius

5 years agosnapshot: switch to h/vradius
Matthias Clasen [Sat, 12 Sep 2020 13:17:02 +0000 (09:17 -0400)]
snapshot: switch to h/vradius

5 years agorendernode: switch to h/vradius
Matthias Clasen [Sat, 12 Sep 2020 13:16:17 +0000 (09:16 -0400)]
rendernode: switch to h/vradius

5 years agocss: Use snapshot api for radial gradients
Matthias Clasen [Sat, 12 Sep 2020 04:07:38 +0000 (00:07 -0400)]
css: Use snapshot api for radial gradients

5 years agosnapshot: Add api for radial gradients
Matthias Clasen [Sat, 12 Sep 2020 03:50:25 +0000 (23:50 -0400)]
snapshot: Add api for radial gradients

These are the equivalents of the linear gradient apis.

5 years agogsk: Add a radial gradient node
Matthias Clasen [Sat, 12 Sep 2020 02:55:37 +0000 (22:55 -0400)]
gsk: Add a radial gradient node

Only a fallback implementation for now.

Fixes #2262

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 18 Sep 2020 02:00:46 +0000 (02:00 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

gtk-demo: Cosmetic changes

See merge request GNOME/gtk!2590

5 years agogtk-demo: Cosmetic changes
Matthias Clasen [Thu, 17 Sep 2020 19:45:29 +0000 (15:45 -0400)]
gtk-demo: Cosmetic changes

Polish the text view demos a little bit.

5 years agoMerge branch 'language-names-GError-fixes' into 'master'
Matthias Clasen [Thu, 17 Sep 2020 23:34:03 +0000 (23:34 +0000)]
Merge branch 'language-names-GError-fixes' into 'master'

Language names g error fixes

See merge request GNOME/gtk!2589

5 years agolanguage-names: Do not g_free() a GError
Peter Bloomfield [Thu, 17 Sep 2020 23:34:03 +0000 (23:34 +0000)]
language-names: Do not g_free() a GError

It's NULL anyway, so freeing GError with g_free() when it's allocated with
GSlice never actually happens, but it just looks bad.

5 years agoMerge branch 'wip/wayland-respond-to-configure' into 'master'
Matthias Clasen [Thu, 17 Sep 2020 18:49:31 +0000 (18:49 +0000)]
Merge branch 'wip/wayland-respond-to-configure' into 'master'

Make sure to respond to configure events in time

Closes #2910

See merge request GNOME/gtk!2588

5 years agowayland/surface: Make sure to commit ack_configure
Jonas Ådahl [Thu, 17 Sep 2020 16:20:08 +0000 (18:20 +0200)]
wayland/surface: Make sure to commit ack_configure

We must wl_surface.commit after xdg_surface.ack_configure to make it
have an effect. We failed to do so when a configure event didn't result
in new updates, so make sure we fall back on an simple
wl_surface.commit if there was no new actual frame painted.

Closes: #2910
5 years agoUpdate Croatian translation
Goran Vidović [Thu, 17 Sep 2020 15:38:21 +0000 (15:38 +0000)]
Update Croatian translation

(cherry picked from commit 1c07a20ca4345a37fd0e3ab1395581cb396f810c)

5 years agowayland: Commit surface from cairo context
Jonas Ådahl [Thu, 17 Sep 2020 15:35:35 +0000 (17:35 +0200)]
wayland: Commit surface from cairo context

In order to make the cairo renderer/context behave more similar to how
the OpenGL and Vulkan renderer/context behaves, request a frame callback
and commit in the end frame vfunc.

This means the end frame vfunc in cairo does

 * attach buffer
 * request frame callback
 * sync surface state
 * commit

Where as e.g. the OpenGL version of the same flow does

 * attach buffer
 * request frame callback
 * sync surface state
 * eglSwapBuffers()

where eglSwapBuffers() indirectly calls wl_surface_commit().

5 years agowayland/surface: Remove 'committed' signal
Jonas Ådahl [Thu, 17 Sep 2020 14:00:40 +0000 (16:00 +0200)]
wayland/surface: Remove 'committed' signal

It wasn't used by anything anymore, lets remove it.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 17 Sep 2020 03:41:32 +0000 (03:41 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2587

5 years agogtk-demo: Fix toggle- vs checkbutton confusion
Matthias Clasen [Thu, 17 Sep 2020 03:07:21 +0000 (23:07 -0400)]
gtk-demo: Fix toggle- vs checkbutton confusion

5 years agogtk-demo: Beef up the hypertext demo
Matthias Clasen [Thu, 17 Sep 2020 02:31:34 +0000 (22:31 -0400)]
gtk-demo: Beef up the hypertext demo

Its almost a dictionary.

5 years agotextview: Properly delete anchored children
Matthias Clasen [Thu, 17 Sep 2020 02:58:58 +0000 (22:58 -0400)]
textview: Properly delete anchored children

When we remove anchors with widgets from the text
buffer, we used to call gtk_widget_destroy(), which
indirectly called gtk_container_remove() which cleared
the child properly. When gtk_widget_destroy() was
removed, we replaced the calls with gtk_widget_unparent(),
but that is not enough. Explicitly call
gtk_text_view_remove() instead - we know the parent
is a text view.

5 years agotextview: Make clickable tags work again
Matthias Clasen [Thu, 17 Sep 2020 02:30:58 +0000 (22:30 -0400)]
textview: Make clickable tags work again

We were claiming the clicks too eagerly, preventing
clickable links, e.g. in GtkAboutDialog, from working.

5 years agoPlug a memory leak in an error case
Matthias Clasen [Wed, 16 Sep 2020 19:59:49 +0000 (15:59 -0400)]
Plug a memory leak in an error case

gtk_show_uri() not freeing the error after showing
it to the user.

Pointed out by Peter Bloomfield in #3166

5 years agoMerge branch 'wip/sadiq/headerbar-demo' into 'master'
Matthias Clasen [Wed, 16 Sep 2020 23:12:26 +0000 (23:12 +0000)]
Merge branch 'wip/sadiq/headerbar-demo' into 'master'

gtk-demo: Add a switch to headerbar demo

See merge request GNOME/gtk!2571

5 years agoUpdate Italian translation
Milo Casagrande [Wed, 16 Sep 2020 07:43:11 +0000 (07:43 +0000)]
Update Italian translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 16 Sep 2020 02:56:08 +0000 (02:56 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

gtk-demo: Add another demo

See merge request GNOME/gtk!2584